package com.meituan.stock.biz.service;

import com.meituan.stock.biz.model.bo.StockBO;

/**
 * @author ShenWenhao
 * @Created by ShenWenhao
 * @Date 2022/5/9 16:09
 */
public interface StockService {

    /**
     * 初始化库存
     * @param stockBO 库存DO实例
     * @return 库存详情
     */
    StockBO initStock(StockBO stockBO);

    /**
     * 入库
     * @param stockBO
     * @return
     */
    String inStock(StockBO stockBO);

    /**
     * 出库
     * @param stockBO
     * @return
     */
    String outStock(StockBO stockBO);

}
